package com.example.tliasfight.service.impl;

import com.example.tliasfight.mapper.DeptLogMapper;
import com.example.tliasfight.pojo.Log;
import com.example.tliasfight.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogServiceImpl implements LogService
{
    @Autowired
    private DeptLogMapper deptLogMapper;
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public void insert(Log log)
    {
        deptLogMapper.insert(log);
    }

}
